package com.ln.adoms.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ln.core.orm.hibernate.BaseEntity;

@Entity
@Table(name = "stock_detail")
public class StockDetail extends BaseEntity {

	private Date rdate;
	private String action;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "marchandise_id")
	private Marchandise marchandise;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "department_id")
	private Department department;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "tg_department_id")
	private Department tgDepartment; //

	private Integer number;
	private Double numberOfBox;
	private Integer leftNumber;
	private Double leftNumberOfBox;
	private String memo; // 备注

	public Date getRdate() {
		return rdate;
	}

	public void setRdate(Date rdate) {
		this.rdate = rdate;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public Marchandise getMarchandise() {
		return marchandise;
	}

	public void setMarchandise(Marchandise marchandise) {
		this.marchandise = marchandise;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Department getTgDepartment() {
		return tgDepartment;
	}

	public void setTgDepartment(Department tgDepartment) {
		this.tgDepartment = tgDepartment;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Integer getLeftNumber() {
		return leftNumber;
	}

	public void setLeftNumber(Integer leftNumber) {
		this.leftNumber = leftNumber;
	}

	public Double getNumberOfBox() {
		return numberOfBox;
	}

	public void setNumberOfBox(Double numberOfBox) {
		this.numberOfBox = numberOfBox;
	}

	public Double getLeftNumberOfBox() {
		return leftNumberOfBox;
	}

	public void setLeftNumberOfBox(Double leftNumberOfBox) {
		this.leftNumberOfBox = leftNumberOfBox;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}
